package com.sskj.mine.ui.activity;


import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.launcher.ARouter;
import com.allen.library.SuperTextView;
import com.sskj.common.base.App;
import com.sskj.common.util.ClickUtil;
import com.sskj.lib.Constans;
import com.sskj.lib.RConfig;
import com.sskj.lib.base.BaseActivity;
import com.sskj.mine.R;
import com.sskj.mine.R2;
import com.sskj.mine.presenter.ContractUsActivityPresenter;

import butterknife.BindView;


/**
 * 联系我们
 */
@Route(path = RConfig.MINE_CONTRACT_US)
public class ContractUsActivity extends BaseActivity<ContractUsActivityPresenter> {
    @BindView(R2.id.stvFeedback)
    SuperTextView stvFeedback;
    @BindView(R2.id.stvAboutUs)
    SuperTextView stvAboutUs;

    @Override
    protected int getLayoutId() {
        return R.layout.mine_activity_contract_us;
    }

    @Override
    public ContractUsActivityPresenter getPresenter() {
        return new ContractUsActivityPresenter();
    }

    @Override
    protected void initView() {
        setTitle(App.INSTANCE.getString(R.string.mine_contractUsActivity1));
        ClickUtil.click(stvFeedback, () -> {
            ARouter.getInstance().build(RConfig.MINE_FEEDBACK).navigation();
        });
        ClickUtil.click(stvAboutUs, () -> {
            ARouter.getInstance().build(RConfig.APP_GUIDE_WEB).withBoolean(Constans.IS_ABOUT_US, true).navigation();
        });
    }
}
